package com.balabala.api;

import com.balabala.dto.VipCardDto;
import com.balabala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author 何涛
 * @Date: 2023/05/07/ 14:24
 * @description 会员卡远程调用
 */
@FeignClient(value = "gym-user-service",contextId = "vipCardFeign")
public interface VipCardFeignClient {
    /**
     * 根据课程id得到支持的会员卡信息
     * @param courseId
     * @return
     */
    @GetMapping("/app/vipCard/getSupportVipCardByCourseId/{courseId}")
    Result<List<VipCardDto>> getSupportVipCardByCourseId(@PathVariable("courseId") Long courseId);
}
